package com.example.repository

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
import com.example.model.dataobject.UserDO
import com.example.repository.mapper.UserMapper
import org.springframework.stereotype.Repository
import org.springframework.transaction.annotation.Transactional

/**
 *
 *
 * @author wangli
 * @date 2025-10-10
 */
@Repository
class UserRepository : ServiceImpl<UserMapper, UserDO>() {

    @Transactional
    fun insert(userDO: UserDO): Int {
        return baseMapper.insert(userDO)
    }

}